package com.project.service;

import com.project.entity.RecruitInfo;

import java.io.IOException;
import java.util.List;

/**
 * @Author: TateBrown
 * @date: 2018/5/26 14:55
 * @param:
 * @return:
 */
public interface RecruitInfoService {
    /**
     * author: wheelchen
     * date: 2017-4-17
     * function: 创建招聘信息
     *
     * @param recruitInfo
     * @return
     */
    int add(RecruitInfo recruitInfo) throws IOException;

    /**
     * author: wheelchen
     * date: 2017-5-24
     * function: 根据id删除招聘信息
     *
     * @param id
     * @return
     */
    int remove(Integer id);

    RecruitInfo findRecruitInfoById(int id);

    int modifyRecruitInfoById(RecruitInfo recruitInfo) throws IOException;


    /**
     * author: wheelchen
     * date: 2017-5-8
     * function: 按照条件查询招聘信息
     *
     * @param recruitInfo
     * @return
     */
    List<RecruitInfo> findByCondition(RecruitInfo recruitInfo);

}
